﻿/*----------------------------------------------------------------
//文件名：BaseUserPage.cs
//文件功能描述：个人中心管理页面基类，必须登录；
//创建人：赵国伟
//创建时间：2012-03-17 17:05:05
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public class BaseUserPage : BasePage
{
    private static readonly UsersManage bllUser = new UsersManage();
    
    #region 重写OnLoad事件
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
       
        if (!bllUser.IsLogin())
        {
            Response.Redirect("/Home/Login.aspx?BackUrl=" + HttpUtility.UrlEncode(Request.Url.AbsoluteUri));
            Response.End();
        }
       
        
    }
    #endregion
}